﻿using System;
using System.Net;
using System.Security.Permissions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace Kugar.Core
{
    public class ApplicationExt
    {
        //[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
        //public static void DoEvents()
        //{
        //    DispatcherFrame frame = new DispatcherFrame();
        //    Dispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(ExitFrames), frame);
        //    try { Dispatcher.PushFrame(frame); }
        //    catch (InvalidOperationException) { }
        //}
        //private static object ExitFrames(object frame)
        //{
        //    ((DispatcherFrame)frame).Continue = false;
        //    return null;
        //}   
    }
}
